package com.demo.dao;

import com.demo.bean.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: maxwellens
 */
@Mapper
public interface UserDao
{
    List<User> findUsers(Map<String, Object> map);

    Integer findUsersCount(Map<String, Object> map);

    User findUserById(Integer id);

    int insertUser(User user);

    void deleteUserById(Integer id);

    void deleteUsers(int[] ids);

    int updateUser(User user);
}
